const log4js = require("log4js");
const path = require("path");
let logPaht = path.resolve(__dirname, "../logs/index.log");

log4js.configure({
  appenders: { cheese: { type: "dateFile", filename: logPaht } },
  categories: { default: { appenders: ["cheese"], level: "info" } },
});
const logger = log4js.getLogger("cheese");

module.exports = logger;
